package com.ruoyi.project.erp.service;

import java.math.BigDecimal;
import java.util.List;

import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.erp.domain.Worklog;
import com.ruoyi.project.erp.dto.SubmitWorkLogDTO;
import com.ruoyi.project.erp.dto.WorklogQuery;
import com.ruoyi.project.erp.query.WorklogStatisticsQuery;
import com.ruoyi.project.erp.vo.*;
import com.ruoyi.project.system.domain.SysUser;

/**
 * 工时Service接口
 * 
 * @author ruoyi
 * @date 2025-06-19
 */
public interface IWorklogService 
{
    /**
     * 查询工时
     * 
     * @param id 工时主键
     * @return 工时
     */
    public Worklog selectWorklogById(Long id);

    /**
     * 查询工时列表
     * 
     * @param worklog 工时
     * @return 工时集合
     */
    public List<Worklog> selectWorklogList(Worklog worklog);

    /**
     * 新增工时
     * 
     * @param worklog 工时
     * @return 结果
     */
    public int insertWorklog(Worklog worklog);

    /**
     * 修改工时
     * 
     * @param worklog 工时
     * @return 结果
     */
    public int updateWorklog(Worklog worklog);

    /**
     * 批量删除工时
     * 
     * @param ids 需要删除的工时主键集合
     * @return 结果
     */
    public int deleteWorklogByIds(Long[] ids);

    /**
     * 删除工时信息
     * 
     * @param id 工时主键
     * @return 结果
     */
    public int deleteWorklogById(Long id);

    int submitWorklog(Worklog submitWorkLogDTO);

    List<MyWorkLogInfoVo> getMyWorkLog(String userId);

    void submitWorkLog(SubmitWorkLogDTO submitWorkLogDTO);

    List<UserWorklogInfoVO> getUserWorklogInfo(String taskId);

    List<WorklogVO> selectList(WorklogQuery query);

    List<WorklogCalendarVO> getWorklogCalendarData(String month);

    List<WorklogVO> selectExportList(WorklogQuery query);

    List<WorklogStatisticsVO> selectDeptWorklogStatistics(WorklogStatisticsQuery query);

    List<WorklogStatisticsVO> selectPersonalWorklogStatistics(WorklogStatisticsQuery query);

    WorklogStatisticsSummaryVO selectDeptWorklogStatisticsSummary(WorklogStatisticsQuery query);

    WorklogStatisticsSummaryVO selectPersonalWorklogStatisticsSummary(WorklogStatisticsQuery query);
}
